package com.lanswon.qzsmk.model;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    /** 用户ID */
    private Integer userId;

    /** 用户名 */
    private String userName;

    /** 编号 */
    private Integer userNo;

    /** 登录名 */
    private String loginName;

    /** 口令 */
    private String loginPassword;

    /** 性别 */
    private String gender;

    /** 生日 */
    private String birthday;
    
    /** 证件类型 */
    private String paperType;

    /** 证件号码 */
    private String paperNo;

    /** 地区 */
    private String nativeplace;

    /** 国家 */
    private String nation;

    /** 政治面貌 */
    private String politicalOutlook;

    /** 职务 */
    private String headship;

    /** 登录限制 */
    private String loginRestrict;

    /** 电话 */
    private String telephone;

    /** 传真 */
    private String fax;

    /** 邮件 */
    private String email;

    /** 照片 */
    private String photo;

    /** 简历 */
    private String resum;

    /** 状态 */
    private String status;

    /** 用户属性 */
    private String properties;

    /** 最后登录时间 */
    private Date lastLoginTime;

    /** 所属机构 */
    private Integer orgId;

    /** 所属岗位 */
    private Integer posId;

    /** 扩展字段1 */
    private String extend1;

    /** 扩展字段2 */
    private String extend2;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword == null ? null : loginPassword.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public String getNativeplace() {
        return nativeplace;
    }

    public void setNativeplace(String nativeplace) {
        this.nativeplace = nativeplace == null ? null : nativeplace.trim();
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation == null ? null : nation.trim();
    }

    public String getPoliticalOutlook() {
        return politicalOutlook;
    }

    public void setPoliticalOutlook(String politicalOutlook) {
        this.politicalOutlook = politicalOutlook == null ? null : politicalOutlook.trim();
    }

    public String getHeadship() {
        return headship;
    }

    public void setHeadship(String headship) {
        this.headship = headship == null ? null : headship.trim();
    }

    public String getLoginRestrict() {
        return loginRestrict;
    }

    public void setLoginRestrict(String loginRestrict) {
        this.loginRestrict = loginRestrict == null ? null : loginRestrict.trim();
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone == null ? null : telephone.trim();
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax == null ? null : fax.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public String getResum() {
        return resum;
    }

    public void setResum(String resum) {
        this.resum = resum == null ? null : resum.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getProperties() {
        return properties;
    }

    public void setProperties(String properties) {
        this.properties = properties == null ? null : properties.trim();
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getPosId() {
        return posId;
    }

    public void setPosId(Integer posId) {
        this.posId = posId;
    }

    public String getExtend1() {
        return extend1;
    }

    public void setExtend1(String extend1) {
        this.extend1 = extend1 == null ? null : extend1.trim();
    }

    public String getExtend2() {
        return extend2;
    }

    public void setExtend2(String extend2) {
        this.extend2 = extend2 == null ? null : extend2.trim();
    }
    
    public String getPaperType() {
		return paperType;
	}

	public void setPaperType(String paperType) {
		this.paperType = paperType;
	}

	public String getPaperNo() {
		return paperNo;
	}

	public void setPaperNo(String paperNo) {
		this.paperNo = paperNo;
	}
	
	

	/**
	 * 
	 */
	public User() {
	}

	/**
	 * @param userName
	 * @param loginName
	 * @param loginPassword
	 */
	public User(String userName, String loginName, String loginPassword) {
		
		this.userName = userName;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", userNo=").append(userNo);
        sb.append(", loginName=").append(loginName);
        sb.append(", loginPassword=").append(loginPassword);
        sb.append(", gender=").append(gender);
        sb.append(", birthday=").append(birthday);
        sb.append(", nativeplace=").append(nativeplace);
        sb.append(", nation=").append(nation);
        sb.append(", politicalOutlook=").append(politicalOutlook);
        sb.append(", headship=").append(headship);
        sb.append(", loginRestrict=").append(loginRestrict);
        sb.append(", telephone=").append(telephone);
        sb.append(", fax=").append(fax);
        sb.append(", email=").append(email);
        sb.append(", photo=").append(photo);
        sb.append(", resum=").append(resum);
        sb.append(", status=").append(status);
        sb.append(", properties=").append(properties);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", orgId=").append(orgId);
        sb.append(", posId=").append(posId);
        sb.append(", extend1=").append(extend1);
        sb.append(", extend2=").append(extend2);
        sb.append("]");
        return sb.toString();
    }
}